import request from '@/utils/request'

/**
 * 获取值班配置人员表
 * @param {*} query 
 * @returns 
 */
export function listConfigMember(query) {
  return request({
    url: '/duty/config/list',
    method: 'get',
    params: query
  })
}

/**
 * 添加值班配置人员
 * @param {jobTitle,titleCode,deptId,userIds} data 
 * @returns 
 */
export function addConfigMember(data) {
  return request({
    url: '/duty/config',
    method: 'post',
    data: data
  })
}

/**
 * 删除值班配置人员
 * @param {userId} userId 
 * @returns 
 */
export function delConfigMember(configId) {
  return request({
    url: '/duty/config/' + configId,
    method: 'DELETE',
  })
}